package example2;

import org.junit.Test;

import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;

public class StackTest {

    @Test
    public void t1() throws Exception {
        Stack<String> stack = new Stack<>();

        stack.push("(");
        String peek = stack.peek();
        stack.push(")");
        String peek1 = stack.peek();

        Object[] objects = stack.toArray();
        System.out.println(objects);
        System.out.println(stack);

        Queue<String> queue = new LinkedList<>();


    }
}
